package lesson1;

public class Demo1 extends Object{
    public static void main(String[] args) {
        System.out.println("--------");
        System.out.println("--------");
        System.out.println("--------");
        Person person = new Person() {
            @Override
            public void fun() {

            }
        };

        Interface1 interface1 = new Interface1() {
            @Override
            public void fun1() {

            }
        };
        System.out.println("---------");
        System.out.println("---------");
        System.out.println("---------");
        System.out.println("---------");
        MyClass myClass = new MyClass();
    }
}
